/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package byblos.negocio.galeria;

import byblos.negocio.tela.Tela;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 *
 * @author Diego
 */
@Entity
public class GaleriaHome extends Galeria {

    @OneToOne(mappedBy = "galeria")
    public Tela home;

    public GaleriaHome() {
    }

    public Tela getHome() {
        return home;
    }

    public void setHome(Tela home) {
        this.home = home;
    }

    @Override
    public int getIdPai() {
        return home.getId();
    }
}
